﻿@model IEnumerable<YashuMedical.msManufacturer>

@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table class="table" id="tblManufacturers">
    <thead>
        <tr>
            <th>
                @Html.DisplayNameFor(model => model.ManufacturerCode)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.ManufacturerName)
            </th>
            @*<th>
                @Html.DisplayNameFor(model => model.Email)
            </th>*@
            <th>
                @Html.DisplayNameFor(model => model.Tel)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.Fax)
            </th>
            @*<th>
                @Html.DisplayNameFor(model => model.PhysicalAddress)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.PostalAddress)
            </th>*@
            <th>
                @Html.DisplayNameFor(model => model.ContactPerson)
            </th>
            @*<th>
                    @Html.DisplayNameFor(model => model.ProcessDateTime)
                </th>
                <th>
                    @Html.DisplayNameFor(model => model.ProcessUserName)
                </th>*@
            <th>Actions</th>
        </tr>
    </thead>
    <tbody>

        @foreach (var item in Model)
        {
            <tr>
                <td>
                    @Html.DisplayFor(modelItem => item.ManufacturerCode)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.ManufacturerName)
                </td>
                @*<td>
                    @Html.DisplayFor(modelItem => item.Email)
                </td>*@
                <td>
                    @Html.DisplayFor(modelItem => item.Tel)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.Fax)
                </td>
                @*<td>
                    @Html.DisplayFor(modelItem => item.PhysicalAddress)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.PostalAddress)
                </td>*@
                <td>
                    @Html.DisplayFor(modelItem => item.ContactPerson)
                </td>
                @*<td>
                        @Html.DisplayFor(modelItem => item.ProcessDateTime)
                    </td>
                    <td>
                        @Html.DisplayFor(modelItem => item.ProcessUserName)
                    </td>*@
                <td>
                    @Html.ActionLink("Edit", "Edit", new { id = item.pkManufacturerID }) |
                    @Html.ActionLink("Details", "Details", new { id = item.pkManufacturerID }) |
                    @Html.ActionLink("Delete", "Delete", new { id = item.pkManufacturerID })
                </td>
            </tr>
        }
    </tbody>
</table>
<script>
    $(document).ready(function () {
        $('#tblManufacturers').dataTable({
        });
    });
</script>